//
//  LTOVELabelEdgInsert.m
//  cdssss
//
//  Created by LTOVE on 16/8/15.
//  Copyright © 2016年 LTOVE. All rights reserved.
//

#import "LTOVELabelEdgInsert.h"
#import "UIView+Frame.h"
@implementation LTOVELabelEdgInsert




- (void)setContentInsets:(UIEdgeInsets)contentInsets
{
    _contentInsets = contentInsets;
    self.width = self.width + contentInsets.left + contentInsets.right;
    self.height = self.height + contentInsets.top + contentInsets.bottom;
}
- (void)drawTextInRect:(CGRect)rect {
    [super drawTextInRect:UIEdgeInsetsInsetRect(rect, _contentInsets)];
    
}
@end
